Backup and Restore [V4] - YouNetCo
- Free Update
What's New?
Version 4.02p4
- Support PHP 8.0
- Fix bugs
Ready with phpFox 4.8.9
Your phpFox community isn't really safe unless you have a solid backup plan. Many things could go wrong from hackers, server crashes, malware, user errors, accidentally deleted files, to bad commands... Keeping that in minds, we developed the Backup And Restore app and it will help your sites and content be considerably safer.
Backup And Restore is a complete phpFox backup module with automatic scheduling support. It allows you to easily create different backup schedules (every 4 hours, every 8 hours, every 12 hours, daily, weekly, fortnightly, monthly) for your database and files; and store them in Google Drive, Microsoft OneDrive, Dropbox, Amazon S3, My SQL Database, SFTP Server, and even email them to specific email addresses.
Last but not least, restoring a phpFox community from backup is also very simple - just click a button and begin restoring any backup in just a few minutes. You can restore to your current site, or to an alternate test site.
Key Features
- User can configure backup settings: select destination, type of files, backup filename prefix
- Support user manage, search for backup history and statistics
- Ability to add new destination where backup files are saved
- Ability to manage and search for destination
- User can add backup schedule for reference
- Support user manage, search for backup schedule
- Ability to restore from file
Packages that include this product:
Feature Listing
Settings
- Configure number of days that system automatically removes backup
- Set maximum number of item per page of Manage Backup, Manage Schedule pages
Backup Now (Backup Settings)
- User can select the destination in which they want to store backup file.
- Ability to select the type of files include in backup attempt
- Support 4 file types:
- Plugins: include plugins's source codes
- Themes: include themes's source codes
- Uploads: include files which have been uploaded
- Database: include database tables
- Support specify the prefix for the name of backup file
- The prefix appended by the backup time stamp
- Support set site offline during backup
- Prevent site visitors from accessing website
- It will be automatically set online when backup process is completed
- Ability to change message when site is offline
Manage Backup
- Show statistics about last backup, next schedule backup, last log file
- Support search for backup by:
- Backup from any date to any date
- Type of file: All type, Automatically, Manual
- Included file: Plugins, Themes, Uploads, Database
- Statistics show backup information: Backup date, type of backup, included file, destinations, filename, file size (MB) , log file
Add New Destination
- User can add destination with common information such as destination type, destination name.
- Beside that, each destination type has its own specific fields as following
- Email: email address
- FTP Server: FTP Server, FTP Login, FTP Password, Remote Path, Passive Mode
- SFTP Server: Host, Port, Username, Password, Directory Path, SCP
- MySQL Database: Host, Port, Database Name, Username, Password
- Amazon S3: S3 Access Key, S3 Secret Key, S3 Bucket
- Dropbox: App Key, App Secret, Access Token, Directory Path
- Microsoft OneDrive: Application ID, Application Secret, Directory Path
- Google Drive: Client ID, Client Secret, Directory Path
Manage Destinations
- Support to search for destination by Name, type
- Show destination information including: Name, Type, Location
Add New Schedule
- Ability to specific Schedule Name for reference
- Set backup intervals: Every 4 hours, Every 8 hours, Every 12 hours, Daily, Weekly, Fortnightly, Monthly
- Allow user set start time to backup
- Ability to select backup destination, type of files include in backup attempt
- Specify the prefix for the name of backup file
- User can select an archive format for backup
- Support set site offline during backup
Manage Schedules
- Ability to search for schedule by Name, created from any date to any date and included file type
- Show backup schedule destination: next time, schedule name, included, destinations
Restore
- Ability to choose backup file to restore
- Support set site offline during backup
Please follow all steps in this Installation & Upgrade guide in order to make this module work properly
1. Installation Guide
Below are the Installation Steps:
- Install YouNet Backup & Restore App from phpFox Store
- Run "Rebuild Core Theme" at AdminCP >> Maintenance
- Clear your cache site (at AdminCP > Maintenance >> Cache Manager)
2. Setup Crontab
- To get the cron command, copy one of these two links below and paste it into your browser address bar:
- http://sitename.com/PF.Site/Apps/yn_backuprestore/cron.php (run directly manually)
- http://sitename.com/PF.Site/Apps/yn_backuprestore/info.php (take command to configure cron job)
- Note: replace "sitename.com" with your site URL.
- For example: " http://abc.com/PF.Site/Apps/yn_backuprestore/info.php "
3. Upgrade Guide
- Upgrade our latest version from phpFox Store
- Run "Rebuild Core Theme" at AdminCP >> Maintenance
- Clear your cache site (at AdminCP > Maintenance >> Cache Manager)
Congratulations! You have finished the Installation/Upgrade process.
If you need any assistance, please submit a new ticket at the client area (http://phpfox.younetco.com/client)
Version 4.02p4
1. Release Date: July 28, 2021
2. Best Compatibility: phpFox 4.6.x - 4.8.x
3. Bug fixes:
- Can not unzip a backup file with zip format
- Backup by schedules works wrong when there are many schedules
4. Improvements:
- Support PHP 8.0
5. Changed Files:
- M Service/Backup.php
- M Service/Destination.php
- M Service/Restore.php
- M Controller/AdminAddDestinationController.php
Version 4.02p3
1. Release Date: Oct 25, 2019
2. Best Compatibility: phpFox 4.6.x - 4.7.x
3. Bug fixes:
- Backup by schedule not work
4. Changed Files:
- M yn_backuprestore/Install.php
- M yn_backuprestore/Service/Backup.php
- M yn_backuprestore/Service/Schedule.php
- A yn_backuprestore/app.lock
- M yn_backuprestore/cron.php
- M yn_backuprestore/phrase.json
- M yn_backuprestore/views/controller/admincp/manage-backup.html.php
- M yn_backuprestore/views/controller/admincp/process-backup.html.php
- M yn_backuprestore/views/controller/admincp/process-restore.html.php
Version 4.02p3
1. Release Date: Nov 26, 2019
2. Best Compatibility: phpFox 4.6.x - 4.7.x
3. Bug fixes:
- Backup by schedule not work
4. Changed Files:
- M yn_backuprestore/Install.php
- M yn_backuprestore/Service/Backup.php
- M yn_backuprestore/Service/Schedule.php
- A yn_backuprestore/app.lock
- M yn_backuprestore/cron.php
- M yn_backuprestore/phrase.json
- M yn_backuprestore/views/controller/admincp/manage-backup.html.php
- M yn_backuprestore/views/controller/admincp/process-backup.html.php
- M yn_backuprestore/views/controller/admincp/process-restore.html.php
Version 4.02p2
1. Release Date: Jul 04, 2019
2. Best Compatibility: phpFox 4.6.x - 4.7.x
3. Improvements:
- Support backup to AWS S3
4. Bug fixes:
- Translation issue
- Layout issue
- Restore - Show the wrong message
- Backup - issue when using the Back button from an error page
- Not allow user backup when no destinations are selected
- Backup via Onedrive - No files be uploaded on Onedrive
- Manage Destination - Editing the OneDrive destination cannot be saved after submitting
- Manage Schedules - Find Schedule issues
- Manage Backups - Find backup show wrong result
5. Changed Files:
- M yn_backuprestore/Adapter/Amazon.php
- M yn_backuprestore/Adapter/Onedrive.php
- M yn_backuprestore/Adapter/libs/onedrive/src/Krizalys/Onedrive/Client.php
- M yn_backuprestore/Adapter/libs/onedrive/src/Krizalys/Onedrive/Folder.php
- M yn_backuprestore/Ajax/Ajax.php
- M yn_backuprestore/Controller/AdminAddDestinationController.php
- M yn_backuprestore/Controller/AdminManageScheduleController.php
- M yn_backuprestore/Install.php
- M yn_backuprestore/Service/Backup.php
- M yn_backuprestore/Service/Destination.php
- M yn_backuprestore/Service/Schedule.php
- M yn_backuprestore/assets/autoload.css
- A yn_backuprestore/assets/datetimepicker/jquery.datetimepicker.full.js
- M yn_backuprestore/assets/datetimepicker/jquery.datetimepicker.full.min.js
- A yn_backuprestore/hooks/admincp.component_controller_index_process_menu.php
- A yn_backuprestore/hooks/bundle__start.php
- A yn_backuprestore/icon.png
- M yn_backuprestore/phrase.json
- M yn_backuprestore/views/controller/admincp/add-destination.html.php
- M yn_backuprestore/views/controller/admincp/add-schedule.html.php
- M yn_backuprestore/views/controller/admincp/backup.html.php
- M yn_backuprestore/views/controller/admincp/manage-backup.html.php
- M yn_backuprestore/views/controller/admincp/manage-schedule.html.php
- M yn_backuprestore/views/controller/admincp/process-backup.html.php
- M yn_backuprestore/views/controller/admincp/process-restore.html.php
- M yn_backuprestore/views/controller/admincp/restore.html.php
Version 4.02p1
1. Release Date: Dec 3, 2018
2. Best Compatibility: phpFox 4.6.x - 4.7.x
3. Improvements:
- Compatible with phpFox 4.7.1
- Hide destination passwords
4. Bug fixes:
- Duplicated backup emails
- Missing themes in backup screen
5. Changed Files:
- yn_backuprestore/assets/autoload.css
- yn_backuprestore/Service/Backup.php
- yn_backuprestore/views/controller/admincp/add-destination.html.php
- yn_backuprestore/views/controller/admincp/backup.html.php
- yn_backuprestore/views/controller/admincp/process-backup.html.php
Version 4.02
1. Release Date: February 13, 2018
2. Best Compatibility: phpFox 4.6.x
3. Improvements:
- Compatible with phpFox 4.6.0
- Improve backup speed
- Can send backup to multible email addresses
3. Bug fixes:
- Cannot backup via FTP method
- Cannot backup via Mysql method
- Cannot backup to Google Drive
Version 4.01p1
1. Release Date: April 19, 2017
2. Best Compatibility: phpFox 4.5.x
3. Improvement(s):
- Support export Database to a mysql compliant file
- Remove "phpfox_log_session" table out of process of backup
- Can send to multiple mails when "Add New Destination" with type Email
4. Bug(s) Fixed:
- Module hang up when editing a schedule if site have many App/Theme/Database
- Missing app icon
5. Files Change:
- yn_backuprestore/views/controller/admincp/add-schedule.html.php
- yn_backuprestore/Controller/AdminAddDestinationController.php
- yn_backuprestore/Service/Backup.php
- yn_backuprestore/Service/Restore.php
- yn_backuprestore/Service/Schedule.php
- yn_backuprestore/views/controller/admincp/add-destination.html.php
- yn_backuprestore/Service/Backup.php
Version 4.01
1. Release Date: February 14, 2017
2. Best Compatibility: phpFox 4.5.x